package edu.spec.wfl.week04.class1;

public class Sheel {
    private String name;
    public Sheel(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
}

class Prawn{
    private String name;
    public Prawn(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
}

class Seal{
    private String name;
    public Seal(String name){
        this.name = name;
    }
    public String getName(){
        return this.name;
    }

    public void eat(Sheel sheel){}
    public void eat(Sheel sheel1, Sheel sheel2){}
    public void eat(Prawn prawn){}
    public void eat(Sheel sheel, Prawn prawn){
        System.out.println("i am" + this.name + ", first i eat" + sheel.getName() + ", then i eat" + prawn.getName());
    }
    public void eat(Prawn prawn1, Sheel sheel1){}

}

class Fish{
    private String name;
    public Fish(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void eat(Sheel sheel){}
    public void eat(Sheel sheel1, Sheel sheel2){}
    public void eat(Prawn prawn){}
    public void eat(Sheel sheel, Prawn prawn){
        System.out.println("i am" + this.name + ", first i eat" + sheel.getName() + ", then i eat" + prawn.getName());
    }
    public void eat(Prawn prawn1, Sheel sheel1){}
}
